<?
include"../cek.php";
include"../sambung.php";
$cek=mysql_query("select nik from data_karyawan where nik='$nik_baru'");
$total=mysql_num_rows($cek);
if($total=="0"){
$add=mysql_query("INSERT INTO data_karyawan ( nama , nik , tingkat , jabatan , posisi , nik_atasan , nik_support , status , hak_akses , besar , th2004 , th2005 , th2006 , password )
VALUES (
'$nama', '$nik_baru', '$tingkat', '$jabatan', '$posisi', '$nik_atasan', '$nik_support', '0', '$akses', '45', '12', '12', '12', '$pass')");
header("location:./data_karyawan.php");
}
?>